package com.dbkj.axb_group;

import com.dbkj.common.model.AxbGroupRelation;
import com.jfinal.aop.Inject;

/**
 * @Author: Max
 * @Date: 2019/10/30 13:37
 */

public class AxbGroupRelationService {

    public static final AxbGroupRelation dao = new AxbGroupRelation().dao();

    public boolean hasRelation(Integer id){
        AxbGroupRelation agr = dao.findFirst("select * from axb_group_relation where relation_id = ?",id);
        if(agr == null){
            return false;
        } else {
            return true;
        }
    }

}
